#ifndef CNC_FANUC_H
#define CNC_FANUC_H

#include <iostream>
#include <fstream>
#include <string>
#include <cerrno>
#include "30i\Fwlib32.h"

// 读取程序列表
int cnc_read_proglist_fanuc(const char* ip, unsigned short port, PRGDIR3* prg, short* num);
// 下载程序
int cnc_download_prog_fanuc(const char* ip, unsigned short port, const char* directory, const char* filename, char** prog_buffer = nullptr, size_t* buffer_size = nullptr);
// 上传程序
int cnc_upload_prog_fanuc(const char* ip, unsigned short port, const char* directory, const char* filename);
// 删除程序
int cnc_delete_prog_fanuc(const char* ip, unsigned short port, const char* filename);

#endif // CNC_FANUC_H
